﻿<%@ Page Language="C#" MasterPageFile="~/Style/Admin/AdminCPMP.master" AutoEventWireup="true" CodeBehind="OrderDetails.aspx.cs" Inherits="OnlineFloralShop.Admin.Order.OrderDetails" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_MainAdmin" runat="server">
  <div>
    <div class="boxsearch">
  <div class="left"></div>
  <div class="right"></div>
  <div class="heading">
    <h1> <input  type="button" class="remove" onclick="hidelink()" id="searchRemove"  value="Search"/>
        <input type="button" class ="add" onclick="showlink()" style="display : none;"  id="searchshow"  value="Search"/></h1>
  </div>
  <script type="text/javascript" language="javascript" >
function hidelink() {  
       document.getElementById("search").style.display='none'; 
       document.getElementById("searchRemove").style.display='none';
       document.getElementById("searchshow").style.display='block';
}
function showlink(){
        document.getElementById("search").style.display='block';
        document.getElementById("searchRemove").style.display='block';
        document.getElementById("searchshow").style.display='none';
}

</script>
  <div class="content" id="search">    
      <div style="float: left; width: 100%;">
        <div style="background: #547C96; color: #FFF; border-bottom: 1px solid #8EAEC3; padding: 5px; font-size: 14px; font-weight: bold;">Search By</div>
        <div style="background: #FCFCFC; border: 1px solid #8EAEC3; padding: 10px;">
          <table cellpadding="2" style="width: 100%;" id="tablesearch" >
            <tbody style="background: #000000; color: #8EAEC3;"><tr>
              <td>Order Id :</td>
              <td align="left">
                  <asp:TextBox ID="searchorderId" runat="server" CssClass="search_txt"></asp:TextBox></td>                  
            </tr><tr>
              <td width="30%">User Name :</td>
              <td align="left"><asp:TextBox ID="searchorderUser" runat="server" CssClass="search_txt"></asp:TextBox></td>
            </tr><tr>
              <td>Start Date: :</td>
              <td align="left" >
                  <asp:TextBox ID="orderstartdate" runat="server" CssClass="search_txt"></asp:TextBox></td>
            </tr> <tr>
              <td>End Date :</td>
              <td align="left">
                  <asp:TextBox ID="orderenddate" runat="server" CssClass="search_txt"></asp:TextBox></td>
            </tr><tr>
              <td>Time : </td>
              <td align="left">
                  <asp:TextBox ID="ordertime" runat="server" CssClass="search_txt"></asp:TextBox></td>
            </tr><tr>
              <td>Status :</td>
              <td align="left" >
                  <asp:DropDownList ID="statusorder" runat="server">
                  </asp:DropDownList>
              </td>
                                    
            </tr><tr>
              <td>Address :</td>
              <td align="left">
                  <asp:TextBox ID="orderaddress" runat="server" CssClass="search_txt"></asp:TextBox>
              </td>
            </tr><tr>
              <td>Location :</td>
              <td align="left">
                  <asp:DropDownList ID="orderLocation" runat="server" >
                  </asp:DropDownList>
                  </td>
            </tr>
          </tbody>
          </table>
           
          <asp:Button ID="Button1"  type="button" class="button" value="Search" onclick= "orderSearch_click" runat="server" Text="Search">  </asp:Button>       
        </div>
        
      </div></div>
  
</div>
</div> 

 <div class="box">
<h2 >Customer Information <span  class="collapse">
    <asp:TextBox ID="txtordersearch" runat="server" CssClass="search_box" ></asp:TextBox> <asp:Button ID="btSearch" runat="server" Text="Button" CssClass="search_button"  OnClick="SearchOrderByCusname"/></span>
</h2> 
  <div class="bottom" >                         
                        <asp:ListView ID="listorder" runat="server">
        <LayoutTemplate>
          <table cellpadding="2" border="1" runat="server" id="tblorder">
            <tr id="Tr1" runat="server">
              <th id="Th1" runat="server">
                  <asp:CheckBox ID="checkall" runat="server" /></th>
              <th id="Th2" runat="server">OrderId</th>
              <th id="Th3" runat="server">User Name</th>              
              <th id ="Th6" runat="server">Time</th>
              <th id ="Th7" runat="server">Status</th>
              <th id ="Th8" runat="server">Recieve Name</th>
              <th id ="Th9" runat="server">Address</th>
              <th id ="Th10" runat="server">Phone</th>
              <th id ="Th11" runat="server">Email</th>
              
             
              <th id ="Th14" runat="server">Details</th>
            </tr>
            <tr runat="server" id="itemPlaceholder" />
          </table>
          <asp:DataPager runat="server" ID="ContactsDataPager" PageSize="12">
            <Fields>
              <asp:NextPreviousPagerField ShowFirstPageButton="true" ShowLastPageButton="true"
                FirstPageText="|&lt;&lt; " LastPageText=" &gt;&gt;|"
                NextPageText=" &gt; " PreviousPageText=" &lt; " />
            </Fields>
          </asp:DataPager>
        </LayoutTemplate>
        <ItemTemplate>
          <tr id="Tr2" runat="server">
            <td>
                <asp:CheckBox ID="checked" runat="server" />
            </td>
            <td>
              <asp:Label ID="OrderId" runat="Server" Text='<%#Eval("OrderId") %>' />
            </td>
            <td >
              <asp:Label ID="UserName" runat="Server" Text='<%#Eval("UserName") %>' />
            </td>            
            
            <td >
              <asp:Label ID="Time" runat="Server" Text='<%#Eval("[Time]") %>' />
            </td>
            <td >
              <asp:Label ID="name" runat="Server" Text='<%#Eval("[Name]") %>' />
            </td>
            <td >
              <asp:Label ID="status" runat="Server" Text='<%#Eval("Status") %>' />
            </td>
            <td >
              <asp:Label ID="Address" runat="Server" Text='<%#Eval("Address") %>' />
            </td>
            <td >
              <asp:Label ID="Phone" runat="Server" Text='<%#Eval("Phone") %>' />
            </td>
            <td >
              <asp:Label ID="Email" runat="Server" Text='<%#Eval("Email") %>' />
            </td>
            
           
            <td><a href="OrderViewDetails.aspx?Id=<%#Eval("OrderId") %>">Details</a><br /></td>
          </tr>
        </ItemTemplate>
        <EditItemTemplate>
          <tr style="background-color: #ADD8E6">
            <td>
              <asp:LinkButton ID="UpdateButton" runat="server" CommandName="Update" Text="Update" />&nbsp;
              <asp:LinkButton ID="CancelButton" runat="server" CommandName="Cancel" Text="Cancel" />
            </td>
            <td>
              <asp:TextBox ID="OrderId" runat="server" Text='<%#Eval("OrderId") %>' 
                MaxLength="50" /><br />
            </td>
            <td>
              <asp:TextBox ID="UserName" runat="server" Text='<%#Eval("UserName") %>' 
                MaxLength="50" /><br />
            </td>
            <td>
              <asp:TextBox ID="StartDate" runat="server" Text='<%#Eval("StartDate") %>' 
                MaxLength="50" /><br />
            </td>
            <td>
              <asp:TextBox ID="EndDate" runat="server" Text='<%#Eval("EndDate") %>' 
                MaxLength="50" /><br />
            </td>
            <td>
              <asp:TextBox ID="Time" runat="server" Text='<%#Eval("[Time]") %>' 
                MaxLength="50" /><br />
            </td>
            <td >
                <asp:DropDownList ID="status" runat="server">
                </asp:DropDownList>
            </td>
            <td>
              <asp:TextBox ID="Address" runat="server" Checked='<%# Eval("Address") %>' Enabled="false"  MaxLength="50" /><br />
            </td>
            <td>
              <asp:TextBox ID="Phone" runat="server" Text='<%#Eval("Phone") %>' 
                MaxLength="50" /><br />
            </td>
            <td>
              <asp:TextBox ID="email" runat="server" Text='<%#Eval("Email") %>' 
                MaxLength="50" /><br />
            </td>
            <td >
                <asp:DropDownList ID="location" runat="server">
                </asp:DropDownList>
            </td>
            <td>
              <asp:TextBox ID="message" runat="server" Text='<%#Eval("MessageContent") %>' 
                MaxLength="50" /><br />
            </td>
          </tr>
        </EditItemTemplate>
      </asp:ListView> 
  
  <div>     
      <asp:Button ID="deletebt" runat="server" Text="Delete" CssClass="button"/></div>            
  </div> 
  </div>  
</asp:Content>
